package com.techstar.ats.type;

import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public enum MessageType implements Enumerated {
	GROUP_DISTANCE(1, "车组运行里程"),
	DRIVER_DISTANCE(2, "司机驾驶里程"),
	SCHEDULE_LOG(3, "调度日志"),
	BAK(4, "存备车"),
	RECONDITION_STATUS(5, "列车整备状态"),
	OP(6, "操作命令"),
	INFO_OR_SYSTEM(7, "列车信息/系统事件");

	private final int value;
	private final String literal;

	@Override
	public int value() {
		return value;
	}

	public String literal() {
		return this.literal;
	}

	public static MessageType valueOf(int value) {
		return Enumerated.valueOf(MessageType.class, value);
	}
}
